home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Games / xjewel / patch-the-bell < prev    next >
Encoding:
Text File  |  1995-05-03  |  1.1 KB  |  53 lines

  1.  
  2. Hi,
  3.  
  4. I could not find the e-mail address of the author in the xjewel distribution,
  5. so I am posting the fix here, hoping that the author will get it...
  6.  
  7. The problem is that xjewel does not reset the bell duration after the
  8. game is over.
  9.  
  10. christos 
  11.  
  12. Here's the fix:
  13.  
  14. *** /tmp/T0a16240    Tue Mar  2 14:59:23 1993
  15. --- jewel.c    Tue Mar  2 14:56:42 1993
  16. ***************
  17. *** 524,530 ****
  18.   int argc;
  19.   char **argv;
  20.       {
  21. !     XKeyboardControl Values;
  22.       struct timeval curtime;
  23.   
  24.       gettimeofday(&curtime,NULL);
  25. --- 524,530 ----
  26.   int argc;
  27.   char **argv;
  28.       {
  29. !     XKeyboardControl Values, savedValues;
  30.       struct timeval curtime;
  31.   
  32.       gettimeofday(&curtime,NULL);
  33. ***************
  34. *** 536,541 ****
  35. --- 536,542 ----
  36.   
  37.       Init_Jewel();
  38.   
  39. +     XGetKeyboardControl(xw_display,&savedValues);
  40.       Values.bell_duration=50;
  41.       XChangeKeyboardControl(xw_display,KBBellDuration, &Values);
  42.       xw_start();
  43. ***************
  44. *** 544,549 ****
  45. --- 545,551 ----
  46.       Init_Help();
  47.   
  48.       xw_main_loop();
  49. +     XChangeKeyboardControl(xw_display,KBBellDuration, &savedValues);
  50.       XCloseDisplay(xw_display);
  51.       exit(0);
  52.       }
  53.